<!-- $Id: goods_type_info.htm 14216 2008-03-10 02:27:21Z testyang $ -->

<?php echo $this->fetch('pageheader.htm'); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,validator.js')); ?>

<div class="main-div">
  <form action="" method="post" name="theForm" onsubmit="return validate();">
    <table cellspacing="1" cellpadding="3" width="100%">
      <tr>
        <td class="label"><?php echo $this->_var['lang']['brand']; ?>:</td>
        <td><select name="brand_id">						<?php $_from = $this->_var['brand']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'info_type');if (count($_from)):
    foreach ($_from AS $this->_var['info_type']):
?>									<?php if ($this->_var['info_type']['brand_id'] == $this->_var['series']['brand_id']): ?>									<option value="<?php echo $this->_var['info_type']['brand_id']; ?>" selected="true"><?php echo $this->_var['info_type']['brand_name']; ?>										<?php else: ?>										<option value="<?php echo $this->_var['info_type']['brand_id']; ?>"><?php echo $this->_var['info_type']['brand_name']; ?>									<?php endif; ?>									</option>						<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>					</select>
        <?php echo $this->_var['lang']['require_field']; ?></td>
      </tr>
      <tr style="display:none">
        <td class="label"><?php echo $this->_var['lang']['goods_type_status']; ?>:</td>
        <td><?php echo $this->html_radios(array('name'=>'enabled','options'=>$this->_var['lang']['arr_goods_status'],'checked'=>$this->_var['picture_type']['enabled'])); ?></td>
      </tr>
      <tr>
        <td class="label"><a href="javascript:showNotice('noticeAttrGroups');" title="<?php echo $this->_var['lang']['form_notice']; ?>"><img src="images/notice.gif" width="16" height="16" border="0" alt="<?php echo $this->_var['lang']['form_notice']; ?>"></a> <?php echo $this->_var['lang']['series_name']; ?>:</td>
        <td>					<input type="text" name="series_name" value="<?php echo htmlspecialchars($this->_var['series']['series_name']); ?>" size="40" />
          <!--<textarea name="picture_group" rows="5" cols="40"><?php echo htmlspecialchars($this->_var['picture_type']['picture_group']); ?></textarea><br />-->
          <!--<span class="notice-span" <?php if ($this->_var['help_open']): ?>style="display:block" <?php else: ?> style="display:none" <?php endif; ?> id="noticeAttrGroups"><?php echo $this->_var['lang']['notice_attr_groups']; ?></span>-->
        </td>
      </tr>			<tr>        <td class="label"><?php echo $this->_var['lang']['series_position']; ?>:</td>        <td><input type="text" name="series_position" value="<?php echo htmlspecialchars($this->_var['series']['series_position']); ?>" size="40" />       </td>      </tr>      <tr>        <td class="label"><?php echo $this->_var['lang']['series_desc']; ?>:</td>        <td><textarea name="series_desc" rows="5" cols="42"><?php echo htmlspecialchars($this->_var['series']['series_desc']); ?></textarea></td>      </tr>
      <tr align="center">
        <td colspan="2">
          <input type="hidden" name="series_id" value="<?php echo $this->_var['series']['series_id']; ?>" />
          <input type="submit" value="<?php echo $this->_var['lang']['button_submit']; ?>" class="button" />
          <input type="reset" value="<?php echo $this->_var['lang']['button_reset']; ?>" class="button" />
          <input type="hidden" name="act" value="<?php echo $this->_var['form_act']; ?>" />
        </td>
      </tr>
    </table>
  </form>
</div>

<script type="text/javascript">
<!--

onload = function() {
  document.forms['theForm'].elements['series_name'].focus();
  startCheckOrder();
}

function validate()
{
  var validator = new Validator('theForm');
  validator.required('series_name', '系列名称不能为空');

  return validator.passed();
}
  
//-->
</script>

<?php echo $this->fetch('pagefooter.htm'); ?>
